import React,{Suspense} from 'react' // Suspense是路由切换的laoading
import routerconfig from '../router'

import {useRoutes,NavLink} from "react-router-dom"
function App() {
  return (
    <>
  
    <Suspense fallback={<div>...loading </div>}>

    {/* 相当于vue的routerview */}
    {
        useRoutes(routerconfig)
    }
    
    </Suspense>
    </>
  )
  
}

export default App